import App from './App'
import util from 'utils/util.js'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
Vue.prototype.$util = util;

App.mpType = 'app'
const app = new Vue({
    ...App,
    beforeCreate() {
        Vue.prototype.$bus = this //安装全局事件总线
    }
})
app.$mount()
// #endif

// #ifdef VUE3
import {
    createSSRApp
} from 'vue'
export function createApp() {
    const app = createSSRApp(App)
    return {
        app
    }
}
// #endif